﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace shenghua.Migrations
{
    public partial class addentity39 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "ShoppingOptionParameters",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "ShoppingOptionParameters",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "ShippingTemplates",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "ShippingTemplates",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "MemberLevels",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "MemberLevels",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "MemberGroups",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "MemberGroups",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "MemberFormItems",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "MemberFormItems",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "Guarantees",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "Guarantees",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "FriendlyLinks",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "FriendlyLinks",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "FileItems",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "FileItems",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "CommodityWares",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "CommodityWares",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "CommoditySpecificationParameters",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "CommoditySpecificationParameters",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "CommodityGuarantees",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "CommodityGuarantees",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "CommodityClasses",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "CommodityClasses",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "Areas",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "Areas",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "ShoppingOptionParameters");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "ShoppingOptionParameters");

            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "ShippingTemplates");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "ShippingTemplates");

            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "MemberLevels");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "MemberLevels");

            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "MemberGroups");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "MemberGroups");

            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "MemberFormItems");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "MemberFormItems");

            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "Guarantees");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "Guarantees");

            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "FriendlyLinks");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "FriendlyLinks");

            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "FileItems");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "FileItems");

            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "CommodityWares");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "CommodityWares");

            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "CommoditySpecificationParameters");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "CommoditySpecificationParameters");

            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "CommodityGuarantees");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "CommodityGuarantees");

            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "CommodityClasses");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "CommodityClasses");

            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "Areas");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "Areas");
        }
    }
}
